import { Ref, ref, defineComponent } from "vue";
import { onMounted } from "vue";
import style from "./style/404.module.css";
import { Nav } from "../../main";
export default defineComponent({
  setup() {
    const template = (
      <>
        <div class={style.errorBox}>
          <img class={style.errorImg} src="/src/assets/svgs/404.svg" />
          <div class={style.btnBox}>
            <a-button type="primary" onClick={() => Nav.navBack()}>
              返回上一页
            </a-button>
            <a-button onClick={() => Nav.replacePage("Register")}>返回首页</a-button>
          </div>
        </div>
      </>
    );
    return () => template;
  },
});
